package com.example.designmode.agency;

//真实的类
public class Reality implements Souvenir{

    //组合接受类
    private Receiver receiver;

    public Reality(Receiver receiver){
        this.receiver = receiver;
    }

    @Override
    //真实类处理实际职责 任务
    public void doll() {
        System.out.println("真实类购买玩偶想要送给" + receiver.getName());
    }
}
